﻿@model Event

@{
    var strHp = new StringHelper();

    string deadlineFormat = ViewBag.DeadlineFormat;
    
    string url = Url.Action("Details", "Event", new
    {
        categoryNameId = Model.Category.NameId,
        eventNameId = Model.NameId
    });
}

<div class="iEvent">
    <a href="@url">
        <img src="@Model.ImageUrl" title="@Model.Name" alt="@Model.Name @ViewBag.AltGlobal" />
    </a>
    <p class="name">@Model.Name</p>
    <p class="deadline">@(String.Format(deadlineFormat, Model.EndDate))</p>
</div>